package com.zhanghe.mall.web.vo;

import com.zhanghe.mall.pojo.Staff;
import org.springframework.beans.BeanUtils;

/**
 * StaffVO
 *
 * @author Clevo
 * @date 2018/10/17
 */
public class StaffVO {

    /**
     * 名称
     */
    public String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static StaffVO transform(Staff staff){
        StaffVO vo = new StaffVO();
        BeanUtils.copyProperties(staff,vo);
        return vo;
    }
}
